import { ChatOpenAI } from 'browser-use-play'
import { Agent } from 'browser-use-play'

// Initialize LLM
const llm = new ChatOpenAI({
  //   modelName: 'gpt-4o',
  //   apiKey: process.env.OPENAI_API_KEY,
  //   baseUrl: process.env.OPENAI_API_BASE,
  model: 'deepseek-chat',
  apiKey: 'sk-39ea6cc567614f4e9d565db03174ea5c',
  baseUrl: 'https://api.deepseek.com',
})

// Initialize agent
const agent = new Agent('Go to hackernews show hn and give me the first  5 posts', llm)
// max_steps=10
await agent.run(10)
